package com.sanda.lib.duckStratege;

// 实现类：会叫
class RedheadDuck extends Duck {
    public RedheadDuck() {
        flyBehavior = new FlyBehavior();
        quackBehavior = new QuackBehavior();
    }

    @Override
    public void display() {
        System.out.println("我是红头鸭");
    }
}